package org.come.control;

import org.come.action.FromServerAction;
import org.come.until.FormsManagement;
import org.come.xingpan.JpanelXingCardMain;
import org.come.xingpan.JframeXingCardMain;
import org.come.xingpan.JpanelXingBackMain;
import org.come.xingpan.JframeXingBackMain;

import com.tool.role.BaseXingpans;
import com.tool.role.RoleProperty;

/**
 * @class 类名:RolechangeControl 人物 星盘 修炼返回数据<br>
 */
public class RolexingpanControl implements FromServerAction{

    @Override
    public void controlMessFromServer(String mes, String type) {
        //修改LoginResult 中的数据
        BaseXingpans upXingpans = RoleProperty.getRoleProperty().upXingpans(mes.replaceAll("\"", ""));


        if(upXingpans !=null){
            if(FormsManagement.getInternalForm2(122)!=null){
                JpanelXingCardMain skillMainPanel = JframeXingCardMain.getJframeSummonEquipMain().getJpanelXingCardMain();
                skillMainPanel.serverRefreshView(upXingpans);

            }
            if(FormsManagement.getInternalForm2(121)!=null){
                JpanelXingBackMain skillMainPanel = JframeXingBackMain.getJframeSummonEquipMain().getJpanelXingBackMain();
                skillMainPanel.viewCultivateBtn1(upXingpans);
            }
            RoleProperty.ResetEw();
        }
    }
}

